require("../../@babel/runtime/helpers/Arrayincludes"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/cashier/index" ], {
    "2c6d": function(e, n, t) {},
    "4fe6": function(e, n, t) {
        t.d(n, "b", function() {
            return a;
        }), t.d(n, "c", function() {
            return o;
        }), t.d(n, "a", function() {
            return r;
        });
        var r = {
            hllCashier: function() {
                return Promise.all([ t.e("common/vendor"), t.e("node-modules/@hll/cashier-mpsdk-uni/src/index") ]).then(t.bind(null, "ab30"));
            }
        }, a = function() {
            var e = this, n = (e.$createElement, e._self._c, e.isOpen ? e.__get_style([ e.styleObj ]) : null);
            e.$mp.data = Object.assign({}, {
                $root: {
                    s0: n
                }
            });
        }, o = [];
    },
    6482: function(e, n, t) {
        var r = t("2c6d");
        t.n(r).a;
    },
    "7b47": function(e, n, t) {
        t.r(n);
        var r = t("4fe6"), a = t("d6c6");
        for (var o in a) [ "default" ].indexOf(o) < 0 && function(e) {
            t.d(n, e, function() {
                return a[e];
            });
        }(o);
        t("6482");
        var l = t("f0c5"), i = Object(l.a)(a.default, r.b, r.c, !1, null, "b38868ea", null, !1, r.a, void 0);
        n.default = i.exports;
    },
    d6c6: function(e, n, t) {
        t.r(n);
        var r = t("dd75"), a = t.n(r);
        for (var o in r) [ "default" ].indexOf(o) < 0 && function(e) {
            t.d(n, e, function() {
                return r[e];
            });
        }(o);
        n.default = a.a;
    },
    dd75: function(e, n, t) {
        var r = t("4ea4").default;
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.default = void 0;
        var a = r(t("ded3")), o = r(t("2de2")), l = t("ef7a"), i = t("cee8"), s = {
            name: "Cashier",
            data: function() {
                return {
                    env: o.default.env.replace("-", "") || "prd",
                    payToken: "",
                    resolver: null,
                    isOpen: !1,
                    halfScreen: "true",
                    halfScreenB: !0,
                    closeConfirm: !1
                };
            },
            computed: {
                styleObj: function() {
                    var e;
                    return {
                        paddingTop: "".concat(((null === (e = this.$store.state.systemInfo) || void 0 === e ? void 0 : e.customBarHeight) || 64) - 2, "px")
                    };
                }
            },
            methods: {
                open: function() {
                    var e = this, n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
                    return this.isOpen = !1, new Promise(function(t) {
                        e.resolver = t, e.payToken = n.pay_token || "", e.isOpen = !0, e.track = n.track || {}, 
                        e.closeConfirm = n.closeConfirm, e.track;
                    });
                },
                resolveHandler: function(e) {
                    var n;
                    "success" !== e.type && (0, l.sendLog)("cashier-error", e), null === (n = this.resolver) || void 0 === n || n.call(this, e);
                },
                onClose: function() {
                    var e = this;
                    this.closeConfirm ? (0, i.$dialog)({
                        title: "",
                        content: "是否放弃本次支付",
                        confirmText: "继续支付",
                        cancelText: "放弃"
                    }).then(function(n) {
                        "confirm" !== n.type && (e.isOpen = !1, e.resolveHandler({
                            type: "cancel",
                            msg: "支付已取消",
                            data: {}
                        }));
                    }) : (this.isOpen = !1, this.resolveHandler({
                        type: "cancel",
                        msg: "支付已取消",
                        data: {}
                    }));
                },
                onPaySuccess: function(e) {
                    this.isOpen = !1, this.resolveHandler({
                        type: "success",
                        msg: "支付成功",
                        data: e
                    });
                },
                onPayFail: function(e) {
                    var n, t, r;
                    this.isOpen = !1;
                    var a = (null == e ? void 0 : e.msg) || (null == e || null === (n = e.thirdPartRes) || void 0 === n ? void 0 : n.errMsg) || "".concat(null != e && e.errType ? "errType:" + (null == e ? void 0 : e.errType) : "") || "支付发起失败，请重试";
                    null != e && null !== (t = e.thirdPartRes) && void 0 !== t && null !== (r = t.errMsg) && void 0 !== r && r.includes("cancel") ? this.resolveHandler({
                        type: "cancel",
                        msg: "支付已取消",
                        data: {}
                    }) : this.resolveHandler({
                        type: "fail",
                        msg: a,
                        data: e
                    });
                },
                onMpPayShowFail: function(e) {
                    var n, t = (null == e ? void 0 : e.msg) || (null == e || null === (n = e.thirdPartRes) || void 0 === n ? void 0 : n.errMsg) || "".concat(null != e && e.errType ? "errType:" + (null == e ? void 0 : e.errType) : "") || "支付唤起失败，请重试";
                    this.isOpen = !1, this.resolveHandler({
                        type: "fail",
                        msg: t,
                        data: e
                    });
                },
                reportTrack: function(e) {
                    var n = {
                        10: "4",
                        14: "5"
                    };
                    try {
                        for (var t in e) if (Object.hasOwnProperty.call(e, t)) {
                            var r = e[t], i = (0, a.default)((0, a.default)({
                                pay_scene: "hll_u_order",
                                terminal_type: n[o.default.clientType]
                            }, r), this.track);
                            this.$statistics(t, i);
                        }
                    } catch (e) {
                        e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
                        (0, l.sendLog)("report-track-error", e);
                    }
                }
            }
        };
        n.default = s;
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/cashier/index-create-component", {
    "components/cashier/index-create-component": function(e, n, t) {
        t("543d").createComponent(t("7b47"));
    }
}, [ [ "components/cashier/index-create-component" ] ] ]);